import layout from '@/components/layout/index'

const routes = [
        {
            path: '/login',
            name: 'login',
            meta: {
                title: "登录"
            },
            component: () => import('@/views/login/login.vue')
        },

        {
            path: '/sysUser',
            name: 'sysUser',
            component: layout,
            redirect: '/sysUser',
            children: [
                {
                    path: '/sysUser',
                    name: 'sysUser',
                    meta: {
                        title: "用户管理"
                    },
                    component: () => import('@/views/sysuser/sys_user.vue'),
                }
            ]
        },

        {
            path: '/home',
            name: 'home',
            component: layout,
            redirect: '/home',
            children: [
                {
                    path: '/home',
                    name: 'Home',
                    meta: {
                        title: "首页"
                    },
                    component: () => import('@/views/home/home.vue'),
                }
            ]
        },

    ]
;

export default routes;
